package com.example.demo.convert;

import com.example.demo.domain.entity.PermissionDO;
import com.example.demo.domain.vo.PermissionVO;
import com.example.demo.domain.param.PermissionRequest;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface PermissionConvert {
    PermissionConvert INSTANCE = Mappers.getMapper(PermissionConvert.class);

    PermissionDO toDO(PermissionRequest request);

    PermissionVO toVO(PermissionDO permissionDO);
}
